<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JS显示HTML元素</title>
</head>
<body>
<p>JavaScript 能够显示隐藏的 HTML 元素。</p>

<p id="demo" style="display: none">Hello JavaScript!</p>
<button onclick="document.getElementById('demo').style.display='block'">点击我</button>

<!--display='block'属性显示-->

</body>
</html>